home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Graphics / Utilities / POVRAY / POVRAY II / POV-Ray / POV-Ray.rsrc / TEXT_324_spotlight.txt < prev    next >
Text File  |  1994-02-10  |  518b  |  13 lines

  1. // create a regular "spotlight" (directed) light source
  2. light_source
  3. {
  4.   0*x // light's position (translated below)
  5.   color red 1.0  green 1.0  blue 1.0  // light's color
  6.   spotlight // this kind of light source
  7.   translate <40, 80, -40>   // <x y z> position of light
  8.   point_at <0, 0, 0> // direction of spotlight
  9.   radius 5       // hotspot (inner, in degrees)
  10.   tightness 50   // tightness of falloff (1...100) lower is softer, higher is tighter
  11.   falloff 8      // intensity falloff radius (outer, in degrees)
  12.  }
  13.